﻿using FluentNHibernate.Mapping;
using Messenia.Data.Models;

namespace Messenia.Data.Hibernate.Map {
    public class DocumentMap: ClassMap<Document> {
        public DocumentMap() {
            Table("documents");
            Id(x => x.DocumentID , "Document_ID");
            Map(x => x.CreationDate);
            References(x => x.Creator ,"Creator_ID");
            Map(x => x.Description );
            Map(x => x.CurrentVersion);
            Map(x => x.GroupGUID );
           // Map(x => x.Content);
            Map(x => x.Name );

        }
    }
}
